home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / sgi / README < prev   
Text File  |  1994-08-01  |  2KB  |  46 lines

  1. $Header: /usr/people/sam/fax/port/sgi/RCS/README,v 1.1 1994/04/27 19:28:36 sam Rel $
  2.  
  3. From: Sam Leffler <sam@sgi.com>
  4. Date: Wed Apr 27 12:20:11 PDT 1994
  5. Subject: building FlexFAX v2.2.2 under IRIX 5.2 with gcc 2.5.8
  6.  
  7. To build v2.2.2 under IRIX 5.2 (or similar) with gcc 2.5.8 beware
  8. of two known problems in the gcc distribution.
  9.  
  10. 1. The configure script does not specify that "collect" must be used
  11.    for C++ programs.  Without collect global constructors will not be
  12.    executed leaving many global variables in the fax server program
  13.    (and other programs) uninitialized.  To correct this problem patch
  14.    the configure script before building gcc:
  15.  
  16.        *** configure       Fri Nov 19 13:44:34 1993
  17.        --- configure.new   Wed Apr 27 11:35:27 1994
  18.        *************** for machine in $canon_build $canon_host
  19.        *** 1050,1055 ****
  20.        --- 1050,1057 ----
  21.            xmake_file=mips/x-iris
  22.            # mips-tfile doesn't work yet
  23.            tmake_file=mips/t-mips-gas
  24.    +           # See comment in mips/iris5.h file.
  25.    +           use_collect2=yes
  26.            ;;
  27.        mips-sgi-irix4loser*)           # Mostly like a MIPS.
  28.            if [ x$stabs = xyes ]; then
  29.  
  30. 2. Build gcc using the following cookbook:
  31.  
  32.     ./configure
  33.     make LANGUAGES=c
  34.     make stage1
  35.     make CC="stage1/xgcc -Bstage1/" CFLAGS="-O2 -save-temps"
  36.     make stage2
  37.     make CC="stage2/xgcc -Bstage2/" CFLAGS="-O2 -save-temps"
  38.     make compare
  39.     make CC="stage2/xgcc -Bstage2/" CFLAGS="-O2 -save-temps" install
  40.  
  41.    (or similar.)  The extra "-save-temps" is necessary to get a
  42.    correctly functioning compiler.  The option is NOT needed when
  43.    invoking gcc; only when building it.
  44.  
  45.     Sam
  46.